package yxy.cherry.battle;

import yxy.cherry.battle.module.affix.AffixContext;

/** 战斗用上下文 */
public class BattleContext {
	// =========================================================
	private int round = 0;
	private int roundLimit = 0;

	public BattleContext(int roundLimit) {
		this.roundLimit = roundLimit;
	}

	public int getRound() {
		return round;
	}

	public int stepRound() {
		round++;
		return round;

	}

	public boolean roundLimit(int round) {
		if (roundLimit <= 0) {
			return false;// 不设限 往死里打
		}
		return round > roundLimit;
	}
//=========================================================

	private Team teamA;
	private Team teamB;

	public void setTeam(Team teamA, Team teamB) {
		this.teamA = teamA;
		this.teamB = teamB;
	}

	public Team getTeamA() {
		return teamA;
	}

	public Team getTeamB() {
		return teamB;
	}

	// =========================================================
	private AffixContext affixContext;// 词缀上下文

	public AffixContext getAffixContext() {
		return affixContext;
	}

	public void setAffixContext(AffixContext affixContext) {
		this.affixContext = affixContext;
	}

}
